<form id="edit-form" class="form-horizontal" role="form" data-toggle="validator" method="POST" action="">


    <!--<div class="form-group">-->
        <!--<label class="control-label col-xs-12 col-sm-2">{:__('地址选择')}:</label>-->
        <!--<div class="col-xs-12 col-sm-8">-->
            <!--<button id="choose" class="btn btn-info" type="button">选择地址</button>-->
        <!--</div>-->
    <!--</div>-->

    <!--<div class="form-group">-->
        <!--<label class="control-label col-xs-12 col-sm-2">{:__('Address')}:</label>-->
        <!--<div class="col-xs-12 col-sm-8">-->
            <!--<input id="c-address" class="form-control" data-rule="required" name="row[address]" type="text"-->
                   <!--value="{$row.address}" readonly>-->
        <!--</div>-->
    <!--</div>-->
    <!--<div class="form-group">-->
        <!--<label class="control-label col-xs-12 col-sm-2">{:__('Longitude')}:</label>-->
        <!--<div class="col-xs-12 col-sm-8">-->
            <!--<input id="c-longitude" class="form-control" data-rule="required" name="row[longitude]" type="text"-->
                   <!--value="{$row.longitude}" readonly>-->
        <!--</div>-->
    <!--</div>-->
    <!--<div class="form-group">-->
        <!--<label class="control-label col-xs-12 col-sm-2">{:__('Latitude')}:</label>-->
        <!--<div class="col-xs-12 col-sm-8">-->
            <!--<input id="c-latitude" class="form-control" data-rule="required" name="row[latitude]" type="text"-->
                   <!--value="{$row.latitude}" readonly>-->
        <!--</div>-->
    <!--</div>-->

    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Name')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-name" class="form-control" name="row[name]" type="text" value="{$row.name}" data-rule="required">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Mprice')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-mprice" data-rule="required" class="form-control" step="0.01" name="row[mprice]" type="number" value="{$row.mprice}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Gprice')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-gprice" data-rule="required" class="form-control" step="0.01" name="row[gprice]" type="number" value="{$row.gprice}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Pprice')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-pprice" data-rule="required" class="form-control" step="0.01" name="row[pprice]" type="number" value="{$row.pprice}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Image')}:</label>
        <div class="col-xs-12 col-sm-8">
            <div class="input-group">
                <input id="c-image" class="form-control" size="50" name="row[image]" type="text" value="{$row.image}" data-rule="required">
                <div class="input-group-addon no-border no-padding">
                    <span><button type="button" id="plupload-image" class="btn btn-danger plupload" data-input-id="c-image" data-mimetype="image/gif,image/jpeg,image/png,image/jpg,image/bmp" data-multiple="false" data-preview-id="p-image"><i class="fa fa-upload"></i> {:__('Upload')}</button></span>
                    <span><button type="button" id="fachoose-image" class="btn btn-primary fachoose" data-input-id="c-image" data-mimetype="image/*" data-multiple="false"><i class="fa fa-list"></i> {:__('Choose')}</button></span>
                </div>
                <span class="msg-box n-right" for="c-image"></span>
            </div>
            <ul class="row list-inline plupload-preview" id="p-image"></ul>
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Images')}:</label>
        <div class="col-xs-12 col-sm-8">
            <div class="input-group">
                <input id="c-images" class="form-control" size="50" name="row[images]" type="text" value="{$row.images}">
                <div class="input-group-addon no-border no-padding">
                    <span><button type="button" id="plupload-images" class="btn btn-danger plupload" data-input-id="c-images" data-mimetype="image/gif,image/jpeg,image/png,image/jpg,image/bmp" data-multiple="true" data-preview-id="p-images"><i class="fa fa-upload"></i> {:__('Upload')}</button></span>
                    <span><button type="button" id="fachoose-images" class="btn btn-primary fachoose" data-input-id="c-images" data-mimetype="image/*" data-multiple="true"><i class="fa fa-list"></i> {:__('Choose')}</button></span>
                </div>
                <span class="msg-box n-right" for="c-images"></span>
            </div>
            <ul class="row list-inline plupload-preview" id="p-images"></ul>
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Gtype_id')}:</label>
        <div class="col-xs-12 col-sm-8">
            <!--<input id="c-gtype_id" data-rule="required" data-source="gtype/index" class="form-control selectpage" name="row[gtype_id]" type="text" value="{$row.gtype_id}">-->
            <select  id="c-c-gtype_id" class="form-control selectpicker" name="row[gtype_id]" data-rule="required">
                <option value="">请选择</option>
                {foreach name="gtypeList" item="vo"}
                <option value="{$vo.id}" {if $vo.id == $row.gtype_id} selected{/if}>{$vo.title}</option>
                {/foreach}
            </select>
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Pdata')}:</label>
        <div class="col-xs-12 col-sm-8">
            
            <div class="radio">
            {foreach name="pdataList" item="vo"}
            <label for="row[pdata]-{$key}"><input id="row[pdata]-{$key}" name="row[pdata]" data-rule="required" type="radio" value="{$key}" {in name="key" value="$row.pdata"}checked{/in} /> {$vo}</label>
            {/foreach}
            </div>

        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Describe')}:</label>
        <div class="col-xs-12 col-sm-8">
            <textarea id="c-describe" class="form-control editor" rows="5" name="row[describe]" cols="50">{$row.describe}</textarea>
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Num')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-num" data-rule="required" class="form-control" name="row[num]" type="number" value="{$row.num}" data-rule="required">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Volume')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-volume" class="form-control" name="row[volume]" type="number" value="{$row.volume}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Weigh')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-weigh" data-rule="required" class="form-control" name="row[weigh]" type="number" value="{$row.weigh}">
        </div>
    </div>
    <div class="form-group layer-footer">
        <label class="control-label col-xs-12 col-sm-2"></label>
        <div class="col-xs-12 col-sm-8">
            <button type="submit" class="btn btn-success btn-embossed disabled">{:__('OK')}</button>
            <button type="reset" class="btn btn-default btn-embossed">{:__('Reset')}</button>
        </div>
    </div>
</form>
